﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SQuestionPlayerMsg extends IMessageBase
    {
        public var doublePropUsed:int;
        public var triplePropUsed:int;
        public var restQuestion:int;
        public var answerRight:int;
        public var score:int;
        public var exper:int;
        public const _type:int = 5203;
        public static var _regist:SQuestionPlayerMsg = new SQuestionPlayerMsg(true);

        public function SQuestionPlayerMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SQuestionPlayerMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.doublePropUsed);
            param1.writeInt(this.triplePropUsed);
            param1.writeInt(this.restQuestion);
            param1.writeInt(this.answerRight);
            param1.writeInt(this.score);
            param1.writeInt(this.exper);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.doublePropUsed = param1.readInt();
            this.triplePropUsed = param1.readInt();
            this.restQuestion = param1.readInt();
            this.answerRight = param1.readInt();
            this.score = param1.readInt();
            this.exper = param1.readInt();
            return;
        }// end function

    }
}
